package tt.lab.pmbok.service;

import java.util.List;

import javax.annotation.Resource;

import tt.lab.pmbok.dao.ArtifactDao;
import tt.lab.pmbok.model.Artifact;
import tt.lab.pmbok.model.ArtifactTemplate;

public class ArtifactServiceImpl implements ArtifactService{
	@Resource(name = "artifactDao")
	private ArtifactDao artifactDao;
	
	
	public Artifact load(int id) {
		return artifactDao.loadById(id).get(0);
	}
	public List<Artifact> loadAll() {
		
		return artifactDao.loadById(0);
	}
	public ArtifactTemplate loadTemplate(int id) {
		return artifactDao.loadTemplateById(id).get(0);
	}
}
